package com.hanbang.maige.mode.javabean.quanzi;

import com.hanbang.maige.mode.enumeration.ShowQuanXian;

import java.util.ArrayList;

/**
 * 作者　　: 李坤
 * 创建时间:2016/10/31　17:59
 * 邮箱　　：496546144@qq.com
 * <p>
 * 功能介绍：
 */

public class FaBuFriendData {
    private String content;
    private ArrayList<String> friendPhoto = new ArrayList<>();
    private ShowQuanXian showQuanXian = ShowQuanXian.PUBLIC;
    private PoiData poiData;


    public PoiData getPoiData() {
        return poiData;
    }

    public void setPoiData(PoiData poiData) {
        this.poiData = poiData;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ArrayList<String> getFriendPhoto() {
        return friendPhoto;
    }

    public void setFriendPhoto(ArrayList<String> friendPhoto) {
        this.friendPhoto = friendPhoto;
    }

    public ShowQuanXian getShowQuanXian() {
        return showQuanXian;
    }

    public void setShowQuanXian(ShowQuanXian showQuanXian) {
        this.showQuanXian = showQuanXian;
    }


    public void photoAddIcon() {
        if (!friendPhoto.contains("add") && friendPhoto.size() <= 9) {
            friendPhoto.add("add");
        } else if (friendPhoto.size() > 9) {
            photoRemove();
        }
    }

    public void photoRemove() {
        if (friendPhoto.contains("add")) {
            friendPhoto.remove("add");
        }
    }
}
